package com.tamtamy.jtta.data;

import java.util.ArrayList;
import java.util.Date;

import org.apache.commons.lang.builder.ToStringBuilder;

public class ContentMessage extends Content{
	
	private static final long serialVersionUID = -6786665549425057165L;
	
	protected String contentType;
	protected String contentTypeCategory;
	protected String size;
	protected boolean thumbnailPresent;
	public ContentMessage() {
		super();
		this.contentType = null;
		this.contentTypeCategory = null;
		this.size = null;
		this.thumbnailPresent = false;
	}

	public ContentMessage(long id, String title, String url, String description,
			String permission, String discussionPermission,
			Date creationDate, Date updateDate, String userID,
			String favouriteCounter, String highlight, String numberOfComments,
			String rateEnabled, ArrayList<String> tags, String rate,
			String ratesNumber, String languageCode,
			ArrayList<String> commentList, String views, String downloads,
			String network, String contentType, String contentTypeCategory,
			String size, boolean thumbnailPresent) {
		super(id, title, url, description, permission, discussionPermission, creationDate,
				updateDate, userID, favouriteCounter, highlight, numberOfComments,
				rateEnabled, tags, rate, ratesNumber, languageCode, commentList, views,
				downloads, network);
		this.contentType = contentType;
		this.contentTypeCategory = contentTypeCategory;
		this.description = description;
		this.size = size;
		this.thumbnailPresent = thumbnailPresent;
	}

	public String getContentType() {
		return contentType;
	}

	public void setContentType(String contentType) {
		this.contentType = contentType;
	}

	public String getContentTypeCategory() {
		return contentTypeCategory;
	}

	public void setContentTypeCategory(String contentTypeCategory) {
		this.contentTypeCategory = contentTypeCategory;
	}

	public String getSize() {
		return size;
	}

	public void setSize(String size) {
		this.size = size;
	}

	public boolean isThumbnailPresent() {
		return thumbnailPresent;
	}

	public void setThumbnailPresent(boolean thumbnailPresent) {
		this.thumbnailPresent = thumbnailPresent;
	} 		

	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
	
}
